{%- if page.key and
   site.valine.enable == true
   -%}
	<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
    <script src="//unpkg.com/valine/dist/Valine.min.js"></script>
	<div id="valine_comment">
	</div>	
	<script>
		new Valine({
			el: '#valine_comment',
			appId: '{{ site.valine.valine_leancloud_appId }}',
			appKey: '{{ site.valine.valine_leancloud_appKey }}',
			notify: {{ site.valine.valine_notify }},
			verify: {{ site.valine.valine_verify }},
			pageSize: {{ site.valine.valine_pageSize }},
			avatar: '{{site.valine.valine_avatar }}',
			placeholder: '{{ site.valine.valine_placeholder }}',
			lang: '{{ site.valine.valine_lang }}'
		})
		

	</script>
{%- endif -%}